﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="AddStory.aspx.cs" 
StylesheetTheme="SkinFile" Inherits="Nivdal.AddStory" Theme="SkinFile" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="obout_Flyout2_NET" Namespace="OboutInc.Flyout2" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="StoryTitleLabel" runat="server" Text="<%$ Resources:Resource, NewsPaper_StoryTitleLabel %>"  CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">
        <asp:Label ID="MessageLabel" runat="server" SkinID="ErrorLabel"></asp:Label>
        <br />
        <asp:TextBox ID="StoryTitleTextBox" runat="server" MaxLength="128"></asp:TextBox>
        <asp:RequiredFieldValidator ID="StoryTitleRequiredFieldValidator" runat="server" 
            ErrorMessage="*" ControlToValidate="StoryTitleTextBox" 
            SetFocusOnError="True" ValidationGroup="NewStory"></asp:RequiredFieldValidator>
            <br />
        <br />
        <asp:Label ID="SubTitleLabel" runat="server" Text="<%$ Resources:Resource, NewsPaper_StorySubTitleLabel %>" SkinID="InfoLabel"></asp:Label>
        <br />
        <CustomControls:TextArea ID="SubTitleTextBox" runat="server" MaxLength="256" TextMode="MultiLine"
         Height="50px" Width="200px" ></CustomControls:TextArea>
        <asp:RequiredFieldValidator ID="SubTitleRequiredFieldValidator" runat="server" 
            ErrorMessage="*" ControlToValidate="SubTitleTextBox" 
            SetFocusOnError="True" ValidationGroup="NewStory"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="RubricTitleLabel" runat="server" Text="<%$ Resources:Resource, NewsPaper_RubricTitle %>" SkinID="InfoLabel"></asp:Label>
        <br />
        <asp:DropDownList ID="RubricsDropDownList" runat="server"  CssClass="rounded_corners" DataTextField="Name" DataValueField="Id" Width="150px"  DataSourceID="RubricsSqlDataSource">
        </asp:DropDownList>
         <asp:SqlDataSource ID="RubricsSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
         SelectCommand="Nivdal_GetListOfActiveRubrics" SelectCommandType="StoredProcedure">
         </asp:SqlDataSource>
           <br />
        <br />
        <asp:Label ID="StoryTextLabel" runat="server" Text="<%$ Resources:Resource, NewsPaper_StoryTextLabel %>" SkinID="InfoLabel"></asp:Label>
        <asp:UpdatePanel ID="TextupdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
            <CustomControls:TextArea ID="Storyeditor" runat="server" MaxLength="40000" TextMode="MultiLine"  Rows="3"
             Height="150px" Width="600px" ></CustomControls:TextArea> 
            <%--<asp:Image ID="HelpImage" runat="server" ImageUrl="~/Images/question.gif" AlternateText="help" />
            <cc1:Flyout ID="Help" runat="server" NoneEffect="true" AttachTo="HelpImage">
                <div class="ToolTipStyle">
                    <asp:Label ID="TextHelpLabel" runat="server"></asp:Label>
                </div>
            </cc1:Flyout>--%>
            <br />
             <asp:Label ID="PreviewLabel" CssClass="HtmlPreview" runat="server" Text=""></asp:Label>  
            </ContentTemplate>
        </asp:UpdatePanel>
            <br />
            <br />

             <asp:Label ID="PictureLabel" runat="server" Text="<%$ Resources:Resource, NewsPaper_AddPicture %>" SkinID="InfoLabel"></asp:Label>&nbsp;
             <asp:FileUpload ID="imgUpload" runat="server" />
            <br />
            <br />
    <asp:Button runat="server" Text="<%$ Resources:Resource, NewsPaper_AddStory %>" ID="AddThread" onclick="AddStory_Click" CssClass="GreenButtonTextStyle" 
                ValidationGroup="NewStory" />
                 &nbsp;&nbsp;&nbsp;
     <asp:Button ID="Button2" onclick="Button2_Click" runat="server" Text="<%$ Resources:Resource, Global_Preview %>"  CssClass="GreySmallButtonStyle" />
      
    </div>
    </div>


        
</asp:Content>
<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
<asp:Label ID="PageNameTeamNameLabel" runat="server" CssClass="PageNameContentStyle"></asp:Label>
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, Newspaper_PageName %>" CssClass="PageNameContentStyle"></asp:Label> 
</asp:Content>
